#define _CRT_SECURE_NO_WARNINGS 1
#include "List.h"

int main()
{
	LTNode* plist =LTInit();
	LTPushBack(plist, 1);
	LTPushBack(plist, 2);
	LTPushBack(plist, 3);
	LTPushBack(plist, 4);
	LTPrint(plist);
	LTPopBack(plist);
	LTPrint(plist);
	LTPushFront(plist, 4);
	LTPushFront(plist, 5);
	LTPrint(plist);
	LTPopFront(plist);
	LTPopFront(plist);
	LTPrint(plist);
	LTNode* pos = LTFind(plist, 3);
	LTInsert(pos, 6);
	LTInsert(pos, 6);
	LTInsert(pos, 7);
	LTPrint(plist);
	pos = LTFind(plist, 7);
	LTErase(pos);
	LTPrint(plist);
	LTDestroy(plist);

	return 0;
}